package com.cherry.basic.demo.service.impl;

import com.cherry.basic.demo.service.IAccountService;

import java.util.*;

/**
 * 依赖注入，复杂数据类型构造函数方式
 */
public class AccountServiceImpl4 implements IAccountService {

    private Date[] myStrs;
    private List<String> myList;
    private Set<String> mySet;
    private Map<String, String> myMap;
    private Properties myProps;

    public AccountServiceImpl4(Date[] myStrs, List<String> myList, Set<String> mySet, Map<String, String> myMap, Properties myProps) {
        this.myStrs = myStrs;
        this.myList = myList;
        this.mySet = mySet;
        this.myMap = myMap;
        this.myProps = myProps;
    }

    public void saveAccount() {
        System.out.println("我被创建了");
        System.out.println(Arrays.toString(myStrs));
        System.out.println(myList);
        System.out.println(mySet);
        System.out.println(myMap);
        System.out.println(myProps);
    }


}
